﻿using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;

/// <summary>
/// Summary description for Location
/// </summary>
namespace CE.HotelEan
{
    public class CXLocation
    {
        public CXLocation()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public LocationInfoResponse LocationInfoResponse { get; set; }
    }

    public class LocationInfoResponse : BaseResponse
    {
        public LocationInfos LocationInfos { get; set; }
    }

    public class LocationInfos
    {
        public int size { get; set; }
        public LocationInfo[] LocationInfo { get; set; }
    }

    public class LocationInfo
    {
        public LocationInfo(){}

        public bool active { get; set; }
        public int activePropertyCount { get; set; }
        public string address { get; set; }
        public string city { get; set; }
        public string code { get; set; }
        public string countryCode { get; set; }
        public string countryName { get; set; }
        public string description { get; set; }
        public string destinationId { get; set; }
        public int geoAccuracy { get; set; }
        public float latitude { get; set; }
        public bool locationInDestination { get; set; }
        public float longitude { get; set; }
        public string postalCode { get; set; }
        public string referenceLocationCode { get; set; }
        public float refLocationMileage { get; set; }
        public string stateProvinceCode { get; set; }
        public int type { get; set; }
    }
}
